package com.gem.service;

import com.gem.entity.Commodity;
import com.github.pagehelper.PageInfo;

import java.util.List;
import java.util.Map;

/**
 * @author zhang
 * @date 2020/9/17 19:24
 */
public interface CommodityService {

    PageInfo<Commodity> findCommoditysByPagesAndName(int pageNow, int pageSize, String name);

    PageInfo<Commodity> findCommoditysByPagesAndType(int pageNow,int pageSize,String type);

    List<String> findAllType();

    Commodity findCommodityById(int id);

    List<Commodity> findCommoditiesByNameAndType(String name,String type);

    List<Commodity> findAllCommodities();

    PageInfo<Commodity> findCommoditysByName(int pageNow, int pageSize,String name);

    List<Map<String,String>> findNumByType();
}
